package com.alorma.bcn.objects;

import com.android.dataframework.Entity;

public class ConsejoEntity {

	private String titulo;
	private String detail;
	private String type;
	
	public String getTitulo() {
		return titulo;
	}
	public void setTitulo(String titulo) {
		this.titulo = titulo;
	}
	public String getDetail() {
		return detail;
	}
	public void setDetail(String detail) {
		this.detail = detail;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	public ConsejoEntity convertFromEntity(Entity ent)
	{
		this.titulo = ent.toString();
		this.detail = ent.getString("texto");
		this.type = ent.getString("type");
		
		return this;
	}
	
}
